package com.ccb.sc.common.modules.shopkeeper.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ccb.sc.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author ken
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_shopping_cart")
public class ShoppingCart extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 规格id
     */
    @TableField("goods_specs_id")
    private Long goodsSpecsId;

    /**
     * 店主ID
     */
    @TableField("shopkeeper_id")
    private Long shopkeeperId;

    /**
     * 用户ID
     */
    @TableField("member_id")
    private Long memberId;

    /**
     * 数量
     */
    @TableField("quantity")
    private Integer quantity;

    /**
     * 是否选中
     */
    @TableField("selected")
    private Boolean selected;


}
